/*
 *  $Id: ManaLeech.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008-2009 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Water.Spells {
    public class ManaLeech: SpellCard<Creature> {
        public ManaLeech(): base("001_w_s_mana_leech") {
            Level = CompleteLevel.ReadyForTest;
            Version = 0;
            Element = ElementType.Water;
            Value = 100;
            Target = new CreatureTarget(GetTargetPhrase(), true, false, CreatureTarget.IsNotDisabled);
            AddManaCost(ElementType.Water, 5);
        }

        protected override void DoAction(TargetArgs<Creature> args) {
            args.Target.InstantDeath();
            Player enemy = args.Player.Enemy;
            foreach (ElementType element in ElementType.ManaElements)
                enemy.DecrementMana(element, enemy.GetMana(element));
        }
    }
}
